package com.qqtech.qquan.user.dao;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Repository;

import com.qqtech.core.frame.dao.BaseDaoImpl;
import com.qqtech.qquan.user.model.UserAddress;

@Repository
public class UserAddressDaoImpl extends BaseDaoImpl<UserAddress>implements UserAddressDao {
	public static final Logger log = LoggerFactory.getLogger(UserAddressDaoImpl.class);

	@Override
	public int updateIsDefault(Integer creatorId) {
		if (creatorId == null || creatorId.intValue() == 0) {
			return 0;
		}
		return sqlSessionTemplate.update(getSqlName("updateIsDefault"), creatorId);
	}

}
